package org.mics.file.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Where;
import org.mics.jpa.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_file")
@Where(clause = "bln_del = 0")
public class FileDO extends BaseEntity{
	
	 /**
     * 文件名字
     */
    @Column(name = "name", nullable = false, columnDefinition = "varchar(50) comment '文件名'")
    private String name;

    
    /**
     * 文件类型
     */
    @Column(name = "file_type", nullable = false, columnDefinition = "varchar(32) comment '文件类型'")
    private String fileType;
    
    /**
     * 地址
     */
    @Column(name = "store_path", nullable = false, columnDefinition = "varchar(100) comment '文件存储路径'")
    private String storePath;
    
    /**
     * 访问路径
     */
    @Column(name = "access_path", nullable = false, columnDefinition = "varchar(100) comment '文件访问路径'")
    private String accessPath;

    /**
     * 文件大小
     */
    @Column(name = "size", columnDefinition = "bigint(10) comment '文件大小'")
    private long size;


    
}
